package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduChapter;
import com.atguigu.eduservice.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zhaolie
 * @since 2020-12-08
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 课程章节列表
     * @return
     * @param courseId
     */
    List<ChapterVo> getChapterVideoCourseId(String courseId);

    /**
     * 添加章节
     * @param eduChapter
     */
    void addChapter(EduChapter eduChapter);

    /**
     * 更新章节
     * @param eduChapter
     */
    void updateChapter(EduChapter eduChapter);

    /**
     * 查询章节
     * @param chapterId
     * @return
     */
    EduChapter getChapter(String chapterId);

    /**
     * 删除章节
     * @param chapterId
     */
    boolean deleteChapter(String chapterId);
}
